#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package};

import io.undertow.server.HttpHandler;
import io.undertow.server.HttpServerExchange;
import io.undertow.util.Headers;

public class TextHandler implements HttpHandler {

	public void handleRequest(HttpServerExchange exchange) throws Exception {
		answerText(exchange, "Hello World");
	}

	public static void answerText(HttpServerExchange exchange, String text) throws Exception {
		exchange.getResponseHeaders().put(Headers.CONTENT_TYPE, "text/plain");
		exchange.getResponseSender().send(text);
	}
}
